package com.gfm.story.dao;

import com.baomidou.mybatisplus.mapper.BaseMapper;
import com.gfm.story.entity.story.Book;
import com.gfm.story.entity.story.ReadLog;
import com.gfm.story.entity.story.Recommend;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * @BelongsProject: story
 * @BelongsPackage: com.gfm.story.dao
 * @Author: Administrator
 * @CreateTime: 2019-06-04 10:03
 * @Description: ${Description}
 */
public interface RecommendDao extends BaseMapper<Recommend> {

    List<Recommend> getRecommendByCategory(@Param("newVersionId") Long newVersionId, @Param("categoryId") Long categoryId);



    int getUserRecommendLog(@Param("userId")Long userId,@Param("bookId") Long bookId);



    List<Recommend> getBookListByDay(Map<String,Object> map);

    int getBookCountByDay(Map<String,Object> map);

    List<Book> getReadPhPage(Map<String, Object> map);

    int getReadPhCount(Map<String, Object> map);
}
